package cn.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.List;

import com.serotonin.util.queue.ByteQueue;
/**
 * 
 * @author Lynx
 * @date 2015年4月18日
 */
public class Sensor implements Serializable {
	private List<Tunnel> tunnels = new ArrayList<Tunnel>();
	private int deviceId;
    
	public Sensor() {

	}
    @Override
    public String toString() {
    	StringBuffer sb=new StringBuffer("设备编号："+deviceId);
    	for (Tunnel t:tunnels) {
			
    		   sb.append("\n"+t.toString());
    	}
    	return sb.toString();
    }
	public Sensor(ByteQueue DeviceInformation) {

	}


	public List<Tunnel> getTunnels() {
		return tunnels;
	}
	public void setTunnels(List<Tunnel> tunnels) {
		this.tunnels = tunnels;
	}
	public int getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(int deviceId) {
		this.deviceId = deviceId;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	private String location;
	private String description;

}
